<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <!-- 引入样式 -->
  <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
  <script src="https://cdn.staticfile.org/vue/2.4.2/vue.min.js"></script>
  <script src="https://unpkg.com/element-ui/lib/index.js"></script>
</head>

<body>
  <div id="app">
    <el-carousel :interval="4000" type="card">
      <el-carousel-item v-for="item in images" :key="item">
        <h3>
          <img :src="item.images_url" alt="" >
        </h3>
      </el-carousel-item>
    </el-carousel>
  </div>

  <script>
    new Vue({
      el: '#app',
      data: function () {
        return {
          visible: false,
          images:[
            {id:1,images_url:'./images/nav01.jpg'},
            {id:1,images_url:'./images/nav02.jpg'},
            {id:1,images_url:'./images/nav03.jpg'}
          ]
        }
      }
    })
  </script>
</body>

</html>